import {Http} from "../utils/http"
import {User} from "./user"

class Answer {
    static async getCheckpoints() {
        const user = new User()
        return await Http.request({
            url: '/checkpoints',
            data: {
                user_id: user.user.id
            }
        })
    }
    static async getRandomCps(cpid, count) {
        return await Http.request({
            url: `/checkpoints/${cpid}/random`,
            data: {
                count
            }
        })
    }
}

export {
    Answer
}
